import java.util.Scanner;

public class Main1637 {
    public static void main(String[] args) {
        Scanner sc=new Scanner(System.in);
        int a=sc.nextInt();
        int x=100;
        if (a<=x){
            System.out.println(a*2);
        }else if(a>x){
            System.out.println((a-x)+x*2);
        }
    }
}
